﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<GabageFactory.Models.Phosphogypsum_Property>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	材料信息
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div id="dolphincontainer">
	    <div id="dolphinnav">
	        <ul class="top_tab">
	            <li><a href="/Stack/Index"><span>堆场管理</span></a></li>
                <li><a href="/Stack/Edit/<%=ViewData["id"] %>"><span>基本信息</span></a></li>
                <li><a href="/Stack/Weather/<%=ViewData["id"] %>"><span>气象信息</span></a></li>
                <li><a href="/Stack/Stack/<%=ViewData["id"] %>"><span>堆场信息</span></a></li>
                <li><a href="/Stack/Pool/<%=ViewData["id"] %>"><span>调节水池</span></a></li>
                <li><a href="javascript:return(false);" class="current"><span>材料信息</span></a></li>
                <li><a href="/Stack/Settle/<%=ViewData["id"] %>"><span>沉降模型</span></a></li>
                <li><a href="/Stack/Piezometer/<%=ViewData["id"] %>"><span>测压井测压仪</span></a></li>
                <li><a href="/Stack/Drain/<%=ViewData["id"] %>"><span>导渗系统</span></a></li>
                <li><a href="/Position/List?type=1&stackId=<%=ViewData["id"] %>"><span>上传图片</span></a></li>
	        </ul>
	    </div>
	</div>

    
    <% using (Html.BeginForm())
    {%>
        <%= Html.ValidationSummary(true) %>
        <%= Html.HiddenFor(model => model.stack_id) %>
        <%
           bool result = (bool)ViewData["success"];
           if(result){ 
        %>
           <div class="tips_area">材料信息更新成功</div>
        <%
        }
        %>
    
    
    <table cellpadding="4" cellspacing="0" class="com_detail_table" style="width:400px;">
        <tr>
            <th colspan="2">材料信息</th>
        </tr>

        <tr>
            <td class="lab" style="width:80px;">
                e<sub>0</sub>
            </td>
            <td>
                <%= Html.TextBoxFor(model => model.material_property_e0) %>
                <%= Html.ValidationMessageFor(model => model.material_property_e0) %>
            </td>
        </tr>

        <tr>
            <td class="lab">
                p<sub>0</sub>
            </td>
            <td>
                <%= Html.TextBoxFor(model => model.material_property_p0) %>
                <%= Html.ValidationMessageFor(model => model.material_property_p0) %>
            </td>
        </tr>

        <tr>
            <td class="lab">
                t<sub>0</sub>
            </td>
            <td>
                <%= Html.TextBoxFor(model => model.material_property_t0) %>
                <%= Html.ValidationMessageFor(model => model.material_property_t0) %>
            </td>
        </tr>

        <tr>
            <td class="lab">
                C<sub>c</sub>
            </td>
            <td>
                <%= Html.TextBoxFor(model => model.material_property_cc) %>
                <%= Html.ValidationMessageFor(model => model.material_property_cc) %>
            </td>
        </tr>

        <tr>
            <td class="lab">
                C<sub>a</sub>
            </td>
            <td>
                <%= Html.TextBoxFor(model => model.material_property_ca) %>
                <%= Html.ValidationMessageFor(model => model.material_property_ca) %>
            </td>
        </tr>

    </table>

    
    <table cellpadding="4" cellspacing="0" class="com_detail_table" style="width:400px; margin-top:8px;">
        <tr>
            <th colspan="2">材料信息</th>
        </tr>

        <tr>
            <td class="lab" style="width:80px;">C</td>
            <td>
                <%= Html.TextBoxFor(model => model.material_property_C) %>
                <%= Html.ValidationMessageFor(model => model.material_property_C) %>
            </td>
        </tr>

        <tr>
            <td class="lab">A</td> 
            <td>
                <%= Html.TextBoxFor(model => model.material_property_A) %>
                <%= Html.ValidationMessageFor(model => model.material_property_A) %>
            </td>
        </tr>

        <tr>
            <td class="lab">B</td>
            <td>
                <%= Html.TextBoxFor(model => model.material_property_B) %>
                <%= Html.ValidationMessageFor(model => model.material_property_B) %>
            </td>
        </tr>

        <tr>
            <td class="lab">n</td>
            <td>
                <%= Html.TextBoxFor(model => model.material_property_n) %>
                <%= Html.ValidationMessageFor(model => model.material_property_n) %>
            </td>
        </tr>

    </table>
    
    <div class="submit_btn_area" style="margin-left:92px;">
        <input type="submit" value="提 交" />
    </div>
    <% } %>
</asp:Content>
